home *** CD-ROM | disk | FTP | other *** search
- TRANSLATE.EXE
- Fast EBCDIC <-> ASCII TRANSLATION
- by
- Thomas A. Lundin
- Graphics Unlimited Inc.
- 3000 Second Street North
- Minneapolis, MN 55411
- (612) 588-7571
-
-
- TRANSLATE converts files from EBCDIC to ASCII and vice versa. It's fast.
-
- The format of the command is:
-
- TRANSLATE [@]filename TO EBCDIC|ASCII
-
- The optional at-sign in front of the source filename indicates that the file
- is a directory list, created by redirecting a DIR command into a file (e.g.
- DIR *.* >dirlist). TRANSLATE will convert each file contained within this
- list.
-
- When converting to EBCDIC, the output files are always created with .EBC as
- the extension.
-
- When converting to ASCII, the output files are always created with .ASC as the
- extension.
-
- Obviously, if you inadvertently ask for an EBCDIC file to be converted TO
- EBCDIC, or for an ASCII file to be converted TO ASCII, you will end up with
- garbage.
-
-
- Command examples:
-
- C>translate dfile.doc to ebcdic
-
- C>translate tapefile.ebc to ascii
-
- C>dir *.txt >allfiles
- C>translate @allfiles to ebcdic
-
-
- NOTES
-
- TRANSLATE was written in Lattice C 2.00. The program is provided as-is, with
- no expressed or implied warranty. Copy it at will and pass it around. If you
- find TRANSLATE to be a nifty program, please contribute $5 to me at the above
- address.
-